package net.yla.smartbus.module.ba.right.roleRL.mapper;

import net.yla.smartbus.module.ba.right.roleRL.entity.AdminRoleRL;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleRLMapper {

    List<AdminRoleRL> selectByRoleId(Integer roleRLId);

    int insertAdminRoleRL(AdminRoleRL adminRoleRL);

    int deleteAdminRoleRL(@Param("roleId") Integer roleId, @Param("adminId") Integer adminId);

    int deleteAdminRoleRLByRoleId(Integer roleId);

    AdminRoleRL selectByAdminId(Integer adminId);
}
